/**
 * 
 */
package com.hanhai.zrb.model.project.enums;

/**
 * @author leiruiqi@hanhai.com
 *
 */
public enum PppTypeEnums {

	NONOPERATION(503,"非经营性"),
	OPERATION(501,"经营性"),
	QUASIOPERATION(502,"准经营性"),
	;
	
	private Integer code;
	
	private String value;
	
	public Integer getCode() {
		return code;
	}

	public String getValue() {
		return value;
	}

	private PppTypeEnums(int code,String value){
		this.code = code;
		this.value = value;
	}
	
	public static String getValueByCode(int code){
		for(PppTypeEnums status:PppTypeEnums.values()){
			if(status.getCode() == code){
				return status.getValue();
			}
		}
		return null;
	}
	
	public static void main(String[] args) {

		for(PppTypeEnums status :PppTypeEnums.values()){
			System.out.println("code="+status.getCode()+ " values = "+status.getValue());
		}
	}
}

